export const routes = [
  {
    path: '/home',
    component: () => import('@/components/home/index.vue'),
    name: 'home',
    meta: {
      title: '首页'
    }
  },
  {
    path: '/user',
    component: () => import('@/components/member/index.vue'),
    children: [
      {
        path: 'real',
        component: () => import('@/components/member/realName/index.vue'),
        meta: {
          title: '实名注册'
        }
      },
      {
        path: 'order',
        component: () => import('@/components/member/order/index.vue'),
        meta: {
          title: '挂号订单'
        }
      },
      {
        path: 'visitor',
        component: () => import('@/components/member/visitor/index.vue'),
        meta: {
          title: '就诊人管理'
        }
      },
      {
        path: 'account',
        component: () => import('@/components/member/account/index.vue'),
        meta: {
          title: '账号信息'
        }
      },
      {
        path: 'opinion',
        component: () => import('@/components/member/opinion/index.vue'),
        meta: {
          title: '意见反馈'
        }
      }
    ]
  },
  {
    path: '/',
    redirect: '/home',
    meta: {
      title: '首页'
    }
  },
  {
    path: '/hospital',
    component: () => import('@/components/hospital/index.vue'),
    redirect: '/home',
    children: [
      {
        path: 'registered',
        component: () => import('@/components/hospital/registered/index.vue'),
        meta: {
          title: '预约挂号'
        }
      },
      {
        path: 'detail',
        component: () => import('@/components/hospital/detail/index.vue'),
        meta: {
          title: '医院详情'
        }
      },
      {
        path: 'notice',
        component: () => import('@/components/hospital/notice/index.vue'),
        meta: {
          title: '预约须知'
        }
      },
      {
        path: 'inform',
        component: () => import('@/components/hospital/inform/index.vue'),
        meta: {
          title: '停诊信息'
        }
      },
      {
        path: 'opera',
        component: () => import('@/components/hospital/opera/index.vue'),
        meta: {
          title: '查询/取消'
        }
      },
      {
        path: 'registered_step1',
        component: () => import('@/components/hospital/registered/regStepOne.vue'),
        meta: {
          title: '挂号一级菜单'
        }
      },
      {
        path: 'registered_step2',
        component: () => import('@/components/hospital/registered/regStepTwo.vue'),
        meta: {
          title: '挂号二级菜单'
        }
      }
    ]
  },
  {
    path: '/wxlogin',
    component: () => import('@/components/login/wxlogin/index.vue')
  },

  {
    //重定向 /
    path: '/',
    redirect: '/home'
  }
]
